<%@ include file="/WEB-INF/jsp/includes/include.jsp"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<title>NoAssertions.com</title>
	<link rel="stylesheet" href="<fmt:message bundle="${mess}" key="baseUrl" />css/reset.css" />
	<link rel="stylesheet" href="<fmt:message bundle="${mess}" key="baseUrl" />css/text.css" />
	<link rel="stylesheet" href="<fmt:message bundle="${mess}" key="baseUrl" />css/960.css" />
	<link rel="stylesheet" href="<fmt:message bundle="${mess}" key="baseUrl" />css/nastyle.css" />
	<link rel="stylesheet" href="<fmt:message bundle="${mess}" key="baseUrl" />css/validationEngine.jquery.css" type="text/css" media="screen" charset="utf-8" />
	
	<script type="text/javascript" src="<fmt:message bundle="${mess}" key="baseUrl" />scripts/jquery.js"></script>
	<script type="text/javascript" src="<fmt:message bundle="${mess}" key="baseUrl" />scripts/jquery.validationEngine-en.js"></script>
	<script type="text/javascript" src="<fmt:message bundle="${mess}" key="baseUrl" />scripts/jquery.validationEngine.js"></script>
	<script type="text/javascript">
	$(document).ready(function() {
		 $("#userForm").validationEngine()
		})
	</script>
</head>
<%@ include file="/WEB-INF/jsp/includes/bodyheader.jsp"%>

		<!--  start center section -->
		<div id="centerSection" class="grid_12">	
			<div id="ridernums" class="grid_2 alpha">
				<img src="<fmt:message bundle="${mess}" key="baseUrl" />img/spacer.gif"/>
			</div>
			<div id="ridernums" class="grid_7">
			<h2>New User</h2>
				<c:if test="${not empty validationErrors}"> <p class="error">It appears as if something went wrong creating your new account: ${validationErrors}</p></c:if>
				<form id="userForm" action="<fmt:message bundle="${mess}" key="servletUrl" />user" enctype="multipart/form-data" method="post">
					<div class="label">First Name:</div>
					<div class="input">
						<input id="firstname" class="validate[required,custom[onlyLetter],length[1,30]]" type="text" name="firstname" value="${firstname}"/>
					</div>
					<div class="label">Last Name:</div>
					<div class="input">
	       				<input id="lastname" class="validate[required,custom[onlyLetter],length[1,30]]" type="text" name="lastname" value="${lastname}" />
					</div>
					<div class="label">Email Address: (We keep this private and will never share it email with anyone!)</div>
					<div class="input">
	       				<input id="emailaddress" class="validate[required,custom[email]]" type="text" size="40" name="emailaddress" value="${emailaddress}" />
					</div>	
					<div class="label">Date of Birth: (yyyy-MM-dd)</div>
					<div class="input">
	       				<input id="birthdate" class="validate[required,custom[date]]" type="text" name="birthdate" value="${birthdate}"/>
					</div>					
					<div class="label">Password:</div>
					<div class="input">
	       				<input id="password" class="validate[required,length[1,16]]"type="password" name="password" />
					</div>
					<div class="label">Confirm Password:</div>
					<div class="input">
	       				<input id="confirmpassword" class="validate[required,confirm[password],length[1,16]]"type="password" name="password" />
					</div>
					<span class="hidden">
						<input id="bread" type="text" size="10" name="bread" />
					</span>
					<div class="submit">
						<input type="submit" class="inputSubmit" value="Submit" />
					</div>
				</form>
			<div id="fitnums" class="grid_3 omega">
			</div>
		</div>
		<div class="clear"></div>
		<!--  end center section -->
<%@ include file="/WEB-INF/jsp/includes/footer.jsp"%>		